<?php
/**
 * Created by PhpStorm.
 * User: 郑合达
 * Date: 2018/12/11
 * Time: 16:39
 */

namespace app\common\validate;


use think\Validate;

class Pickup extends Validate
{
    protected $rule = [
        'pickup_name'                      => 'require',  //必填
        'pickup_address'                    => 'require',
        'pickup_phone'                      => 'require',  //必填
        'pickup_contact'                    => 'require',
        'province'                      => 'require',  //必填
        'city'                          => 'require',
        'district'                      => 'require',  //必填
        'suppliersid'                    => 'require',
    ];

    protected $message = [
        'pickup_name.require'                => '请填写自提点名称',
        'pickup_address.require'             => '请填写自提点地址',
        'pickup_phone.require'                  => '请填写自提点电话',
        'pickup_contact.require'                => '请填写自提点联系人',
        'province.require'             => '请选择省份',
        'city.require'                  => '请选择市',
        'district.require'             => '请选择区/县',
        'suppliersid.require'                  => '请选择供应商',
    ];
}